package alone.redis.queue.redisqueue.controller;

import alone.redis.queue.redisqueue.service.SignInService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/redis/queue/")
public class SignInApi {


    @Resource
    private SignInService signInService;

    @PostMapping("signIn")
    public String signIn(String name,String sex){
        return signInService.insertData(name,sex);
    }


}
